

package com.prog3.calendarutec;

import android.os.Bundle;
import android.os.Handler;
import android.app.Activity;
import android.content.Intent;
import android.view.Menu;

public class PageIndex extends Activity {
	private double ejemplo=4.5;
	private final int SPLASH_DISPLAY_LENGTH = 2000;
	
	@Override
	 public void onCreate(Bundle savedInstanceState) {
	  super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_page_index);
        new Handler().postDelayed(new Runnable() {
        	   public void run() {
        	    Intent intent = new Intent(PageIndex.this, Inicio.class);
        	    startActivity(intent);
        	  
        	    finish();
        	   };
        	  }, SPLASH_DISPLAY_LENGTH);
        	 }
        	

    @Override
    public boolean onCreateOptionsMenu(Menu menu) {
        getMenuInflater().inflate(R.menu.activity_page_index, menu);
        return true;
    }
}